<%-- 
    Document   : adrs_seguranca
    Created on : 10/05/2011, 15:50:37
    Author     : ismaily
--%>

<%@page import="br.ufc.quixada.adrs.model.Perfil" %>
<%@page import="br.ufc.quixada.adrs.model.Adrs" %>

<%
            Perfil perfilUser = (Perfil) session.getAttribute("user");
            if (perfilUser==null || !(perfilUser instanceof Adrs)) {
                session.setAttribute("erro", br.ufc.quixada.adrs.util.Msg.AUTHENTICATION_ERROR);
                response.sendRedirect(request.getContextPath()+"/index.jsp");
                return;
            }
%>

